﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;

namespace IceDog.JsonDotNet.Model
{
    public class Account
    {
        // appear last
        [JsonProperty(Order = 1)]
        public bool Deleted { get; set; }

        [JsonProperty(Order = 2)]
        public DateTime DeletedDate { get; set; }

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }

        // appear first
        [JsonProperty(Order = -2)]
        public string FullName { get; set; }
        public string Email { get; set; }
        public bool Active { get; set; }
        public IList<string> Roles { get; set; }
        [JsonIgnore]
        public string PasswordHash { get; set; }
    }

}
